<div id="b-form" ng-controller="UserProfileController">
    <div class="head">
        <h1>
            我的资料
        </h1>
    </div>
    <div class="body">
        <form ng-submit="submit(form.$valid)" novalidate name="form" class="form-horizontal">
            <div class="form-group">
                <label for="username" class="col-sm-2 col-md-1 control-label">用户名</label>
                <div class="col-sm-10 col-md-11">
                    <input type="text"
                           class="form-control input-inline"
                           id="username"
                           name="username"
                           ng-model="userService.data.username"
                           required="true"
                           tabindex="1"
                           readonly
                           ng-focus/>
                </div>
            </div>
            <div class="form-group">
                <label for="upload_space_space" class="col-sm-2 col-md-1 control-label">图片空间</label>
                <div class="col-sm-10 col-md-11">
                    <input type="text"
                           class="form-control input-inline"
                           id="upload_space_space"
                           name="upload_space_space"
                           ng-model="userService.data.upload_space_space"
                           required="true"
                           tabindex="1"
                           readonly
                           ng-focus/>
                </div>
            </div>
            <div class="form-group">
                <label for="upload_space_used" class="col-sm-2 col-md-1 control-label">使用空间</label>
                <div class="col-sm-10 col-md-11">
                    <input type="text"
                           class="form-control input-inline"
                           id="upload_space_used"
                           name="upload_space_used"
                           ng-model="userService.data.upload_space_used"
                           required="true"
                           tabindex="1"
                           readonly
                           ng-focus/>
                </div>
            </div>
            <div class="form-group" ng-class="{'has-error':!form.profile_realname.$pristine && form.profile_realname.$invalid && !form.profile_realname.$focused}">
                <label for="profile_realname" class="col-sm-2 col-md-1 control-label">姓名</label>
                <div class="col-sm-10 col-md-11">
                    <input type="text"
                           class="form-control input-inline"
                           id="profile_realname"
                           name="profile_realname"
                           ng-model="userService.data.profile_realname"
                           required="true"
                           tabindex="1"
                           ng-focus/>
                    <div class="help-block">用于在生成文档时自动添加姓名</div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-10 col-md-11 col-sm-offset-2 col-md-offset-1">
                    <button class="btn btn-primary" type="submit">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>